package com.ruoyi.saleReturn.service;

import com.ruoyi.purchaseReturn.domain.PurchaseReturnModel;
import com.ruoyi.purchaseReturn.domain.PurchaseReturnOrder;
import com.ruoyi.sale.domain.SaleGoodsModel;
import com.ruoyi.sale.domain.SaleorderOrder;
import com.ruoyi.saleReturn.domain.SaleReturnModel;
import com.ruoyi.saleReturn.domain.SaleReturnOrder;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 【请填写功能名称】Service接口
 *
 * @author jndj
 * @date 2022-06-17
 */
public interface ISaleReturnService
{
    public SaleReturnOrder selectSaleReturnOrderById(Long saleReturnModelId);

    public List<SaleReturnOrder> selectSaleReturnOrderList(SaleReturnOrder nytSaleReturnModel);

    public int insertSaleReturnOrder(SaleReturnOrder nytSaleReturnModel);

    public int updateSaleReturnOrder(SaleReturnOrder nytSaleReturnModel);

    public int deleteSaleReturnOrderByIds(String ids);

    public int deleteSaleReturnOrderById(Long saleReturnId);

    List<SaleGoodsModel> selectShowSaleGoodsModelById(Long saleGoodsId);

    SaleGoodsModel selectSaleGoodsModel(HashMap<Object, Object> hashMap);

    List<PurchaseReturnOrder> selectPurchaseReturnList(PurchaseReturnOrder purchaseReturnOrder);

    List<PurchaseReturnModel> selectShowPurchaseReturnModelById(Long purchaseReturnId);

    int insertSaleReturnModel(SaleReturnModel saleReturnModel);

    void saleReturnAudit(Long saleReturnId, String status);

    SaleReturnOrder selectSaleReturnOrderAndModelById(Long purchaseReturnId);

    List<SaleReturnOrder> selectSaleReturnOrderListCustObj(Long companyId);

    List<SaleorderOrder> selectPurchaseReturnCustObj(Long companyId);

    int auditSale(Long saleReturnId, String status);

    // 获取上一条记录
    Long querypreviousId(Long saleReturnId);
    // 获取下一条记录
    Long queryNextId(Long saleReturnId);

    List<Map<String, Object>> pendingReview(Long deptID);
}
